<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <meta http-equiv="X-UA-Compatible" content="IE=edge">
    <meta name="viewport" content="width=device-width, user-scalable=no, initial-scale=1.0, maximum-scale=1.0, minimum-scale=1.0">
    <title>确认支付</title>
    <link rel="stylesheet" type="text/css" href="__PUBLIC__/Css/semantic.css"/>
    <link rel="stylesheet" type="text/css" href="__PUBLIC__/Css/common.css">
    <link rel="stylesheet" type="text/css" href="__PUBLIC__/Css/main.css">
    <script src="__PUBLIC__/Js/zepto.min.js" type="text/javascript"></script>
    <script src="__PUBLIC__/Js/main.js" type="text/javascript"></script>
</head>
<body style="text-align: center;">
<!--<header id="header" style=""> -->
    <!--<div class="topbar"> -->
     <!--<a href="javascript:history.back();" class="back_btn"><i class="angle left icon"></i></a> -->
     <!--<a href="javascript:;" class="top_home"><i class="block layout icon"></i></a> -->
     <!--<h1 class="page_title">确认支付</h1>-->
    <!--</div> -->
    <!--<div class="home_menu" id="hMenu" > -->
     <!--<a href="__APP__/Gouwu/Buycp2/"><i class="home icon"></i><span>首页</span></a>-->
      <!--<a href="__APP__/Gouwu/gpai"><i class="star icon"></i><span>公排管理</span></a>-->
      <!--<a href="__APP__/Index/index/"><i class="user icon"></i><span>个人中心</span></a>-->
      <!--<a href="__APP__/Gouwu/shopCar/"><i class="shop icon"></i><span>购物车</span></a>  -->
    <!--</div> -->
   <!--</header>-->
      <script>
        SiteName = "";
        var isApp = Cookie.Get("isApp");
        if (isApp == null || isApp == "") { isApp = 0; }
        if (isApp == 1) { $("#header").hide(); }
        $(".top_home").click(function () {
            var target = $(".home_menu");
            if (target.slideToggle) target.slideToggle();
            else  target.toggle(); });
    </script> 
      <script type="text/javascript">
        var _mvq = window._mvq || [];
        window._mvq = _mvq;
        _mvq.push(['$setAccount', 'm-23995-6']);

        _mvq.push(['$logConversion']);
        (function () {
            var mvl = document.createElement('script');
            mvl.type = 'text/javascript'; mvl.async = true;
            mvl.src = ('https:' == document.location.protocol ? 'https://static-ssl.mediav.com/mvl.js' : 'http://static.mediav.com/mvl.js');
            var s = document.getElementsByTagName('script')[0];
            s.parentNode.insertBefore(mvl, s);
        })();

    </script> 
<!--<button onclick="getOrder()">购买</button>-->
<div id='success' style="display:none;text-align: center">
    <h3>恭喜您！</h3>
    <h3>已成功付款！</h3>
    <br>
    <br>
    <a href="__APP__/Index/index/" style="color: blue;">返回个人中心</a>
</div>

<div class="main-bottom">
    <div class="col-xs-3">
        <a href="__APP__/Gouwu/Buycp2/" class="">
            <i class="home icon"></i>
            <div>首页</div>
        </a>
    </div>
    <!--<div class="col-xs-3">-->
    <!--<a href="__APP__/Gouwu/wsmall" class="">-->
    <!--<i class="star icon"></i>-->
    <!--<div>微店</div>-->
    <!--</a>-->
    <!--</div>                -->
    <div class="col-xs-3">
        <a href="__APP__/Gouwu/gpai" class="">
            <i class="star icon"></i>
            <div>会员管理</div>
        </a>
    </div>
    <div class="col-xs-3">
        <a href="__APP__/Index/index/" class="">
            <i class="user icon"></i>
            <div>个人中心</div>
        </a>
    </div>
    <div class="col-xs-3">
        <a href="__APP__/Gouwu/shopCar/" class="">
            <i class="shop icon"></i>
            <div>购物车</div>
        </a>
    </div>
</div>
<jquery />
<script>

function onBridgeReady(){
    var data={$data};
    WeixinJSBridge.invoke(
        'getBrandWCPayRequest', data,
        function(res){
            if(res.err_msg == "get_brand_wcpay_request:ok" ) {
                // 使用以上方式判断前端返回,微信团队郑重提示：res.err_msg将在用户支付成功后返回    ok，但并不保证它绝对可靠。
                document.getElementById("success").style.display="";//显示
            }else{
                alert(res.err_code+res.err_desc+res.err_msg); // 显示错误信息
            }
        }
    );
}

 if (typeof (WeixinJSBridge) == "undefined"){
     if( document.addEventListener ){
         document.addEventListener('WeixinJSBridgeReady', onBridgeReady, false);
     }else if (document.attachEvent){
         document.attachEvent('WeixinJSBridgeReady', onBridgeReady);
         document.attachEvent('onWeixinJSBridgeReady', onBridgeReady);
     }
 }else{
      onBridgeReady();
 }

</script>
</body>
</html>